<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/views/include/taglib.jsp"%>
<html>
<head>
	<title>投标保证金管理</title>
	<meta name="decorator" content="default"/>
	<link rel="stylesheet" href="${ctxStatic}/common/bootstrap.min.css">
	<link rel="stylesheet" href="${ctxStatic}/common/AdminLTE.min.css">
	<link rel="stylesheet" href="${ctxStatic}/common/jeesite.css">
	<script src="${ctxStatic}/jquery-validation/1.16/jquery.validate.js"></script>
	<script src="${ctxStatic}/jquery-validation/1.16/jquery.validate.extend.js"></script>
	<script src="${ctxStatic}/jquery-validation/1.16/localization/messages_zh_CN.js"></script>
	<style type="text/css">
		
		#inputForm a{
			height: 30px;
			border-color: #ccc;
		}
		
		#contentTable tr{
			font-size: 13px;
		}
		#contentTable th{
			border-left: 1px solid #ddd;
			border-top: 1px solid #ddd;
		}
		#contentTable td{
			border-left: 1px solid #ddd;
			border-top: 1px solid #ddd;
		}
		
	</style>
	
	<script type="text/javascript">
		$(document).ready(function() {
			//$("#name").focus();
			$("#inputForm").validate({
				submitHandler: function(form){
					loading('正在提交，请稍等...');
					form.submit();
				},
				errorContainer: "#messageBox",
				errorPlacement: function(error, element) {
					$("#messageBox").text("输入有误，请先更正。");
					if (element.is(":checkbox")||element.is(":radio")||element.parent().is(".input-append")){
						error.appendTo(element.parent().parent());
					} else {
						error.insertAfter(element);
					}
				}
			});
		});
		
		function subForm(){
			$.ajax({
                cache: true,
                type: "POST",
                url:"${ctx}/zx/bidBond/save",
                data:$('#inputForm').serialize(),// 
                async: false,
                error: function(XMLHttpRequest) {
                	top.$.jBox.tip("表单提交异常", 'info');
                },
                success: function(data) {
                	top.$.jBox.tip("信息保存成功", 'info');
                }
            });
			return true;
		}
	</script>
</head>
<body>
	<div class="main-content">
	  <div class="box box-main">
	  	<form:form id="inputForm" modelAttribute="bidBond" method="post" class="form-horizontal">
			<form:hidden path="id"/>
			<form:hidden path="lzdId"/>
			<form:hidden path="sectionId"/>
			<form:hidden path="supplierId"/>
			<sys:message content="${message}"/>	
			<div class="box-body">
				<div class="form-unit">保证金缴纳</div>
				<div class="row">
					<div class="col-xs-9">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span>是否缴纳：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-7">
								<form:select path="payResult" cssStyle="width:100px">
									<form:option value="">请选择</form:option>
									<form:options items="${fns:getDictList('yes_no')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
								</form:select>
							</div>
						</div>
					</div>
				</div>
				<%-- <div class="row">
					<div class="col-xs-7">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 缴纳金额：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8 font-style">
								<fmt:formatNumber value="${bidBond.paySum}" type="currency" pattern="￥.000000"/>
							</div>
						</div>
					</div>
					
				</div>
				<div class="row">
					<div class="col-xs-7">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span>缴纳时间：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8 font-style">
								<fmt:formatDate value="${bidBond.payTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-7">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 缴纳形式：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8 font-style">
								${bidBond.payMode}
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-7">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span> 缴纳票据上传：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8">
								<form:hidden id="payFile" path="payFile" htmlEscape="false" maxlength="4000" class="input-xlarge"/>
								<sys:ckfinder input="payFile" type="files" uploadPath="/zx/payFile" selectMultiple="true" readonly="true"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 缴纳备注：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-10 font-style">
								${bidBond.payRemarks}
							</div>
						</div>
					</div>
				</div> --%>
				<div class="form-unit">保证金退还</div>
				<div class="row">
					<div class="col-xs-9">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span>是否退还：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-7">
								<form:select path="returnableResult" cssStyle="width:100px">
									<form:option value="">请选择</form:option>
									<form:options items="${fns:getDictList('yes_no')}" itemLabel="label" itemValue="value" htmlEscape="false"/>
								</form:select>
							</div>
						</div>
					</div>
				</div>
				<%-- <div class="row">
					<div class="col-xs-7">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span>退还金额：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8 font-style">
								<fmt:formatNumber value="${bidBond.returnableSum}" type="currency" pattern="￥.000000"/>
							</div>
						</div>
					</div>
					<div class="col-xs-7">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span>退还利息金额：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8 font-style">
								<fmt:formatNumber value="${bidBond.returnableInterest}" type="currency" pattern="￥.000000"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-7">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span>退还时间：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8 font-style">
								<fmt:formatDate value="${bidBond.returnableTime}" pattern="yyyy-MM-dd HH:mm:ss"/>
							</div>
						</div>
					</div>
					
				</div>
				<div class="row">
					<div class="col-xs-7">
						<div class="form-group">
							<label class="control-label col-sm-4" title="">
								<span class="required hide">*</span>退还票据上传：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-8 font-style">
								<form:hidden id="returnableFile" path="returnableFile" htmlEscape="false" maxlength="4000" class="input-xlarge"/>
								<sys:ckfinder input="returnableFile" type="files" uploadPath="/zx/returnFile" selectMultiple="true" readonly="true"/>
							</div>
						</div>
					</div>
				</div>
				<div class="row">
					<div class="col-xs-12">
						<div class="form-group">
							<label class="control-label col-sm-2" title="">
								<span class="required hide">*</span> 退还备注：<i class="fa icon-question hide"></i>
							</label>
							<div class="col-sm-10 font-style">
								${bidBond.returnableRemarks}
							</div>
						</div>
					</div>
				</div>
			</div> --%>
			
		</form:form>
	  </div>
	</div>
</body>
</html>